import App from './App'
// 持久化
import store from './store/index.js'
Vue.prototype.$store = store

// -路由页面
import home from './pages/home/home.vue'
Vue.component('home',home)
// --构成页面
import logoBar from './pages/others/elements/logo-bar.vue'
Vue.component('logo-bar',logoBar)
import articlelist from './pages/articlelist/articlelist.vue'
Vue.component('articlelist',articlelist)
import join from './pages/join/join.vue'
Vue.component('join',join)
import news from './pages/news/news.vue'
Vue.component('news',news)
import my from './pages/my/my.vue'
Vue.component('my',my)
// -通用组件
import cuCustom from './components/cu-custom.vue'
Vue.component('cu-custom',cuCustom)
import fastSearch from './components/fast-search.vue'
Vue.component('fast-search',fastSearch)
import flotage from'./components/flotage.vue'
Vue.component('flotage',flotage)
import XmBezierCart from './components/xm-bezier-cart.vue';
Vue.component('xm-cezier-cart',XmBezierCart);
// 登录拦截
import './common/interceptor.js';//引入拦截
// 分享
import share from './common/share.js'
Vue.mixin(share) 

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    store,...App,share
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif